import {
    DIC
} from '@/const/dic';
import {
    timeFormatter
} from '../formatter';
export const appVersionTableOption = {
    border: true,
    index: true,
    selection: true,
    calcHeight: 380,
    columnBtn: false,
    searchClearable: false,
    selectClearBtn: false,
    searchResetBtn: false,
    height: "auto",
    menu: true,
    menuAlign: "center",
    searchBtn: true,
    labelWidth: 120,
    refreshBtn: true,
    tip: false,
    addBtn: true,
    dialogWidth: '800px',
    dialogHeight: 'auto',
    menuWidth: 180,
    editBtn: true,
    viewBtn: false,
    delBtn: true,
    column: [{
            "label": "名称",
            "prop": "Name",
            "search": true,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入名称",
                "trigger": "blur"
            }]
        },
        {
            "label": "版本号",
            "prop": "Version",
            "search": true,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入版本号",
                "trigger": "blur"
            }]
        },
        {
            "label": "wgt包下载地址",
            "prop": "WgtUrl",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入wgt包下载地址",
                "trigger": "blur"
            }]
        },
        {
            "label": "整包下载地址",
            "prop": "PkgUrl",
            "search": false,
            "type": "text",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请输入整包下载地址",
                "trigger": "blur"
            }]
        },
        {
            "label": "创建时间",
            "prop": "CreateTime",
            "search": false,
            "type": "datetime",
            "fixed": false,
            "width": "160",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": false
        },
        {
            "label": "更新时间",
            "prop": "UpdateTime",
            "search": false,
            "type": "datetime",
            "fixed": false,
            "width": "160",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": false
        },
        {
            "label": "状态",
            "prop": "Status",
            "search": true,
            "type": "select",
            "fixed": false,
            "width": "auto",
            "row": false,
            "minWidth": "120",
            "readonly": false,
            "span": 12,
            "display": true,
            "rules": [{
                "required": true,
                "message": "请选择状态",
                "trigger": "blur"
            }],
            "placeholder": "请选择状态",
            "dicData": DIC["appVersionStatusDic"]
        }
    ]
};
